<?php

namespace core\lib;

class session
{
	public static function start()
	{
		session_start();
	}
	public static function get($name)
	{
		if(!isset($_SESSION[$name]))
			return false;
		return $_SESSION[$name];
	}
	
	public static function set($name, $value)
	{
		$_SESSION[$name] = $value;
	}
	
	public static function remove($name)
	{
		unset($_SESSION[$name]);
	}
	
	public static function clear()
	{
		$_SESSION = [];
	}
	
	public static function debug()
	{
		p($_SESSION);
	}
}